﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TienTeTuong.back_end
{
    public partial class OrderDetail : System.Web.UI.Page
    {
        public OrderDTO CurOrder = new OrderDTO();
        public Order oderDao = new Order();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Admin"] == null)
            {
                Response.Redirect("Default.aspx");
            }
            if (!Page.IsPostBack)
            {
                string id = Request.Params["id"] ?? "";
                CurOrder = oderDao.listOrder().Where(o => o.ID == id).FirstOrDefault();
            }
            else
            {
                //string id = Request.Params["id"] ?? "";
                //item = cateBus.GetArtCateByID(id);
                //txtName.Text = item.CateName;
                //txtDes.Text = item.Description;
                //isActive.Value = item.Active.ToString();
                //txtParent.Text = item.CateParent;
                //txtViplevel.Text = item.VipLevel.ToString();
            }
        }
    }
}